xen/arch/*: add struct domain parameter to arch_do_domctl
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Tue, 18 Dec 2012 18:16:52 +0000 (18:16 +0000)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Tue, 18 Dec 2012 18:16:52 +0000 (18:16 +0000)
commitc83e878b9efd3a958846a017bfc3e56018ece3dd
tree2879fd40743df6c48de68d6b5800a11e11d06f3a
parent8ea0a35ad7034a9499b2c202acec28ae4477c05e
xen/arch/*: add struct domain parameter to arch_do_domctl

Since the arch-independent do_domctl function now RCU locks the domain
specified by op->domain, pass the struct domain to the arch-specific
domctl function and remove the duplicate per-subfunction locking.

This also removes two get_domain/put_domain call pairs (in
XEN_DOMCTL_assign_device and XEN_DOMCTL_deassign_device), replacing
them with RCU locking.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Tim Deegan <tim@xen.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
Committed-by: Keir Fraser <keir@xen.org>
xen/arch/arm/domctl.c
xen/arch/x86/domctl.c
xen/common/domctl.c
xen/drivers/passthrough/iommu.c
xen/include/xen/hypercall.h
xen/include/xen/iommu.h